import {
    createRouter,
    createWebHistory
} from 'vue-router'

import Index from '../view/index.vue'
import NotFound from '../view/fault/404.vue'

const routes = [
    {
        path: '/',
        name: 'index',
        component: Index,
    }, {
        path: '/login',
        name: 'login',
        component: () => import('../view/login.vue'),
    }, {
        path: '/logo',
        name: 'logo',
        component: () => import('../view/logo.vue'),
    }, {
        path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router